﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace MemcachedDemo.Library.Serializer
{
    [Serializable]
    public class UserInfo
    {
        [XmlElement(ElementName = "Name")]
        public string UserName
        {
            get;
            set;
        }

        public long UserId
        {
            get;
            set;
        }

        //public List<UserRole> UserRoles
        //{
        //    get;
        //    set;
        //}
    }

    public class UserRole
    {
        public int RoleId
        {
            get;
            set;
        }

        public string Name
        {
            get;
            set;
        }
    }
}
